package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.KuixianMapper;
import com.information.manage.MaintenanceRecord.pojo.Kuixian;
import com.information.manage.MaintenanceRecord.service.KuixianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KuixianServiceImpl implements KuixianService {
    @Autowired
    private KuixianMapper kuixianMapper;

    @Override
    public List<Kuixian> selectAll() {
        return kuixianMapper.selectAll();
    }

    @Override
    public void addMaintKuixian(Kuixian kuixian) {
        kuixianMapper.insert(kuixian);
    }

    @Override
    public void updateMaintKuixian(Kuixian kuixian) {
        kuixianMapper.update(kuixian);
    }

    @Override
    public void deleteMaintKuixian(Integer kxid) {
        kuixianMapper.delete(kxid);
    }

    @Override
    public void logicDeleteMaintKuixian(Integer kxid) {
        kuixianMapper.logicDelete(kxid);
    }
}